package com.powernode.mapper;

import com.powernode.annotation.DataScope;
import com.powernode.domain.Activity;
import com.powernode.model.BaseQuery;
import com.powernode.query.ActivityQueryCondition;
import com.powernode.vo.ActivityDetailInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_activity(市场活动表)】的数据库操作Mapper
* @createDate 2025-02-18 10:09:27
* @Entity com.powernode.domain.Activity
*/
public interface ActivityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    @DataScope(tableAlias = "ta",tableField = "owner_id")
    List<ActivityDetailInfoVo> selectList(@Param("baseQuery") BaseQuery baseQuery, @Param("activityQueryCondition") ActivityQueryCondition activityQueryCondition);

    ActivityDetailInfoVo selectActivityDetailInfoById(Integer activityId);

    List<Activity> selectAllList();
}
